#include<stdio.h>
#include<string.h>

int fun(char *a,char *b,char *c)
{
	while(*a&&*b)
	{
		*c=*a;
		c++;
		a++;
		*c=*b;
		c++;
		b++;
	}
	if(*a=="\0")
	{
		while(*b)*c==*b;
		{
			c++;
			b++;
		}
	}
	else
	{
		while(*a)*c==*a;
		{
			c++;
			a++;
		}
	}
	*c='\0';
	return(*c);
}

int main()
{
	char s1[100],s2[100],t[200];
	printf("\nEnter s1 string:");
	scanf("%s",s1);
	printf("\nEnter s2 string:");
	scanf("%s",s2);
	fun(s1,s2,t);
	printf("\nThe result is:%s\n",t);
}

